// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /practiceSituation/delete */
export async function deletePracticeSituation(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/practiceSituation/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /practiceSituation/get */
export async function getPracticeSituationVo(options?: { [key: string]: any }) {
  return request<API.BaseResponsePracticeSituationVO>('/practiceSituation/get', {
    method: 'GET',
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /practiceSituation/get/exams */
export async function getExams(
  body: API.PracticeSituationQueryForExamsRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageGenerateExamPageVO>('/practiceSituation/get/exams', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /practiceSituation/update */
export async function updatePracticeSituation(
  body: API.PracticeSituationUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/practiceSituation/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
